package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @Author bsy
 * @Description TODO
 * @Date 2022/7/4 22:46
 * @Version 1.0
 *
 * 全局异常处理：https://mp.weixin.qq.com/s/mJyEZwl1CmGM2dmeelIQSw
 */

@RestController
@RequestMapping("/index")
public class HelloController {

    @RequestMapping("/hello")
    public String index(){
        System.out.println("=======执行helloController方法index（）");
        return "hello";
    }

}
